<template>
	<view class="content">
		<u-cell-group v-for="item in receivelist" :key="item.id">
			<u-cell :title="'客户名称：' + item.business.nickname" :value="'申请状态：' + item.status_text">
				<view slot="label" style="color: #909193;font-size: 14px; line-height: 18px;margin-top: 10px;">
					<view>申请时间： {{item.applytime}}</view>
				</view>
			</u-cell>
		</u-cell-group>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				receivelist: [],
				LoginUser: {},
			}
		},
		onLoad() {
			this.LoginUser = uni.getStorageSync('LoginUser') ? uni.getStorageSync('LoginUser') : {};
			this.$u.auth.check()
			this.getreceivedata()
		},
		methods: {
			async getreceivedata() {
				let result = await this.$u.api.business.receivelist({
					id: this.LoginUser.id
				})
				if (result.code == 1) {
					this.receivelist = result.data
				}
			}
		}
	}
</script>

<style>
	.content {
		/* width: 90%; */
		height: 100vh;
		/* margin: 0 auto; */
	}
</style>
